package demo.ws.service.impl;

import java.rmi.RemoteException;

import javax.xml.rpc.ServiceException;

public class Application {

	public static void main(String[] args) throws ServiceException, RemoteException {
		CalculatorService calculatorService = new CalculatorServiceLocator();
		Calculator calculator = calculatorService.getCalculator();
		int result = calculator.add(1, 2);
		System.out.println(result);
	}

}
